package net.anumbrella.seaweedfs.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author Mr.Lang
 */
@ConfigurationProperties(prefix = "seaweedfs")
public class SeaWeedProperties {
    private boolean enabled = false;
    private String host="127.0.0.1";
    private Integer port=9333;
    private Integer connectionTimeout=3000;
    private Integer maxConnection = 100;
    private boolean masterCluster = false;

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public Integer getConnectionTimeout() {
        return connectionTimeout;
    }

    public void setConnectionTimeout(Integer connectionTimeout) {
        this.connectionTimeout = connectionTimeout;
    }

    public Integer getMaxConnection() {
        return maxConnection;
    }

    public void setMaxConnection(Integer maxConnection) {
        this.maxConnection = maxConnection;
    }

    public boolean isMasterCluster() {
        return masterCluster;
    }

    public void setMasterCluster(boolean masterCluster) {
        this.masterCluster = masterCluster;
    }
}
